import {createApp} from "vue"
import Hello from "./vue_demo/Hello.vue"
import { sum } from "./utils/math.js"
import "./utils/demo.js"

createApp(Hello).mount("#app")

const message = "Hello World! 模块热替换标记"

sum(5+6)

console.log(message);
console.log(process.env.NODE_ENV,"变量");

module.hot.accept(()=>{
    module.hot.accept("./utils/math.js",()=>{
        console.log("demo模块发生了热更新");
    })
})
